package com.shanhesoft.java.modules.tool.domain.vo;

import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 */
public class Chunk implements Serializable {
	/**
	 * 当前文件块，从1开始
	 */
	private Integer chunkNumber;
	/**
	 * 分块大小
	 */
	private Long chunkSize;
	/**
	 * 当前分块大小
	 */
	private Long currentChunkSize;
	/**
	 * 总大小
	 */
	private Long totalSize;
	/**
	 * 文件标识
	 */
	private String identifier;
	/**
	 * 文件名
	 */
	private String filename;
	/**
	 * 相对路径
	 */
	private String relativePath;
	/**
	 * 总块数
	 */
	private Integer totalChunks;

	/**
	 * 二进制文件
	 */
	private MultipartFile file;

	public Integer getChunkNumber() {
		return chunkNumber;
	}

	public void setChunkNumber(Integer chunkNumber) {
		this.chunkNumber = chunkNumber;
	}

	public Long getChunkSize() {
		return chunkSize;
	}

	public void setChunkSize(Long chunkSize) {
		this.chunkSize = chunkSize;
	}

	public Long getCurrentChunkSize() {
		return currentChunkSize;
	}

	public void setCurrentChunkSize(Long currentChunkSize) {
		this.currentChunkSize = currentChunkSize;
	}

	public Long getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(Long totalSize) {
		this.totalSize = totalSize;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}

	public Integer getTotalChunks() {
		return totalChunks;
	}

	public void setTotalChunks(Integer totalChunks) {
		this.totalChunks = totalChunks;
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}
}
